import request from '@/utils/request'

// 查询日报列表
export function listDailypaper(query) {
  return request({
    url: '/teacher/dailypaper/list',
    method: 'get',
    params: query
  })
}

// 查询日报详细
export function getDailypaper(id) {
  return request({
    url: '/teacher/dailypaper/' + id,
    method: 'get'
  })
}

// 新增日报
export function addDailypaper(data) {
  return request({
    url: '/teacher/dailypaper',
    method: 'post',
    data: data
  })
}

// 修改日报
export function updateDailypaper(data) {
  return request({
    url: '/teacher/dailypaper',
    method: 'put',
    data: data
  })
}

// 删除日报
export function delDailypaper(id) {
  return request({
    url: '/teacher/dailypaper/' + id,
    method: 'delete'
  })
}
